package be.djdb.game.essetials;

import java.awt.Point;

public enum Direction implements Comparable<Direction>{
		  LEFT(3),
		  UP(2),
		  RIGHT(7),
		  DOWN(11),
		  FIXED(0),
		  POINT(5);
		  private final int constante;
		  private Direction(int constante){
		    this.constante=constante;
		  }
		  public int getvalue() {
		    return constante;
		  }
		  public boolean isvalue(Direction d) {
			return this.constante ==d.getvalue();
		  }
		  @Override
		public String toString() {
			switch (this.getvalue()) {
			case 3:
				 return new String(" direction:LEFT");
			case 2:
				 return new String(" direction:UP");
			case 7:
				 return new String(" direction:RIGHT");
			case 11:
				 return new String(" direction:DOWN");
			case 0:
				 return new String(" direction:FIXED");
			default:
				return new String(" direction:???");				 
			}
			 
		}
}
